/*****************************************************************
 *
 * 设置分类数据
 * ShowCategory(list)				
 *
 *****************************************************************/
ShowCategory = function(list_dis, class_len, flag_var) {
	Color = "#39B27A";
	class_n = 0;
	flag = getMyVar(flag_var, "0");
	for(var a = 0; a < list_dis.length; a++) {
		var title = (a == Number(flag)) ? "““””<b>" + '<font color=' + Color + '>' + list_dis[a] + '</font></b>' : list_dis[a];
		d.push({
			title: title,
			url: $("#noLoading#").lazyRule((flag_var, flag) => {
				putMyVar(flag_var, flag);
				refreshPage(false);
				return "hiker://empty"
			}, flag_var, String(a)),
			col_type: 'scroll_button'
		});
		// 是否换下一行显示
		if(class_len[class_n] == a+1) {
			d.push({
				col_type: "blank_block"
			});
			class_n += 1;
		}
	}
	
}

ShowCategory(class_list_dis, class_len, "class_set");